
//初始化数据
const tagData: any[] = []
//暴露函数中创建的reducer
export const productReducer = (state = tagData, action: any) => {
    switch (action.type) {
        case 'GET_CATEGORY':
            state = action.payload;
            return state
        default:
            return state
    }
}